@import './var.css';
@import 'element-plus/theme-chalk/dark/css-vars.css';
@import "./content-box.scss";
@import "./buttons.scss";

.reset-margin [class*='el-icon'] + span {
  margin-left: 2px !important;
}

// 解决抽屉弹出时，body宽度变化的问题
.el-popup-parent--hidden {
  width: 100% !important;
}

// 解决表格内容超过表格总宽度后，横向滚动条前端顶不到表格边缘的问题
.el-scrollbar__bar {
  display: flex;
  justify-content: flex-start;
}

/* nprogress 适配 element-plus 的主题色 */
#nprogress {
  & .bar {
    background-color: var(--el-color-primary) !important;
  }
  
  & .peg {
    box-shadow: 0 0 10px var(--el-color-primary),
    0 0 5px var(--el-color-primary) !important;
  }
  
  & .spinner-icon {
    border-top-color: var(--el-color-primary);
    border-left-color: var(--el-color-primary);
  }
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.fixed {
  position: fixed;
}

.sticky {
  position: sticky;
}

.flex {
  display: flex;
}

.space-between {
  justify-content: space-between;
}

.align-items_center {
  align-items: center;
}

.block {
  display: block;
}

.flex-center {
  @extend .flex;
  @extend .align-items_center;
  justify-content: center;
}

.auto {
  margin: 0 auto;
}

.border-box {
  box-sizing: content-box;
}

.pointer {
  cursor: pointer;
  user-select: none;
}

.wh18 {
  width: 18px;
  height: 18px;
}
